package xyz.ddlnt.model.vo;

import com.alibaba.fastjson2.JSONArray;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/9 21:11
 */
@Schema( description = "帖子列表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PostVO  implements Serializable {
    @Schema(description = "帖子id")
    private Long id;
    @Schema(description = "用户 id")
    private Long userId;

    // 连表--->UserInfo
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "用户名")
    private String username;

    @Schema(description = "帖子标题")
    private String postTitle;
    @Schema(description = "帖子标签")
    private JSONArray  tags;
    @Schema(description = "映射标签")
    private String tagsArray;

    @Schema(description = "帖子摘要")
    private String summary;
    @Schema(description = "帖子内容")
    private String postContent;


    @Schema(description = "浏览人数")
    private Integer viewCount;
    @Schema(description = "点赞数")
    private Integer likeCount;
    @Schema(description = "收藏数")
    private Integer collectCount;

    @Schema(description = "发布时间")
    private LocalDateTime publishTime;
    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
}
